<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav {
            border: dotted red 5px;
        }
        
        .nav a {
            font-size: 20px;
            text-decoration: none;
            height: 40px;
            display: inline-block;
            padding: 0 20px;
        }
        
        .nav a:hover {
            background-color: rgb(240, 146, 6);
        }
    </style>
</head>

<body>
    <div class="nav">
        <a href="#">新浪</a>
        <a href="#">网易博客</a>
        <a href="#">新百度</a>

    </div>
</body>

</html>